FROM    node:6.9
MAINTAINER  Andy Zhang<zch@cn.ibm.com>

WORKDIR /app
LABEL   VERSION {{ image_version }}
COPY     bower.json .bowerrc package.json /app/
RUN     npm install -g bower --registry=https://registry.npm.taobao.org \
        && bower install
RUN     npm install --registry=https://registry.npm.taobao.org
COPY    . /app
ENTRYPOINT  ["npm", "start"]
